﻿using System.Web;
using TallComponents.Web.Pdf;
using TallComponents.Web.Storage;

namespace TallComponents.Web
{
   public partial class VistaToolBarSample : System.Web.UI.Page
   {
      protected void uploadPdf_Click( object sender, System.EventArgs e )
      {
         HttpPostedFile postedFile = Request.Files[ "pdf" ];
         if ( null != postedFile )
         {
            string key = PdfStorage.Provider.StoreFile( postedFile );
            pdfViewer.StorageKey = key;
            pdfViewer.PageIndex = 0;
         }
      }
   }
}
